<?php
class UserModel extends RelationModel{
    protected $_link = array(
            'news'=>array(
            	'mapping_type'    =>HAS_ONE,
                 'class_name'   	=>'news',
                 'foreign_key'		=>'uid' ,
                 'mapping_fields'	=>array('id' ,'uid' ,'title'),
             ),
             'answ'=>array(
            	'mapping_type'    =>HAS_ONE,
                 'class_name'   	=>'answer',
                 'foreign_key'		=>'uid' ,
                 'mapping_fields'	=>array('id' ,'uid' ,'one'),
             ),
         );
}